var StampedFn=StampedFn||function(e,t){var a={SERVICE_HOST:{svc_loyalty_widget:"https://stamped.io/api/widgets/loyalty",svc_loyalty_engine:"https://stamped.io/api/v3/loyalty",svc_identity:"https://stamped.io/api/v3/identity"},DEFAULT_ENDPOINT:e.stamped_ajax_url||"//stamped.io/api",SECURE_ENDPOINT:e.stamped_ajax_secure_url||"https://stamped.io/api",metafields:e.mainWidgetMetafields||"",exclude_main_css:e.stamped_exclude_main_css||!1,exclude_font:e.stamped_disable_font||!1,disable_single_review:e.stamped_disable_review_single||!1,modal_ugc_image_viewer:e.stamped_modal_ugc_viewer_type||"image",is_preview:e.isStampedLauncherPreview||!1,is_init_rewards:!0,is_force_jquery:e.stamped_force_jquery||!1,is_disable_cache_badge:e.stamped_disable_cache_badge||!1,is_disable_cache:e.stamped_disable_cache||!1,referral_code:null,is_rewards_code_copy:!1,is_ignore_submit_error:!1,rewards_apply_discount_url_format:e.stamped_rewards_apply_discount_url_format||"",slick_options:e.stamped_slick_options||{dots:!1,infinite:!1,speed:300,slidesToShow:4,slidesToScroll:4,slide:".stamped-review",initialSlide:0,rows:0,responsive:[{breakpoint:1024,settings:{slidesToShow:3,slidesToScroll:3}},{breakpoint:600,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:480,settings:{slidesToShow:1,slidesToScroll:1}}]},includes_options:{rewards_button_js:!0,rewards_window_js:!0}},s=!1,r=!1,o="";let n=e.location.href.split("?")[1];if(n&&(n=n.split("#")[0]),n){let e=new URLSearchParams(n);"loyalty2023"===e.get("test")&&(console.log("test loyalty 2023 preview"),r=!0),e.has("testLoyaltyAccount")&&(console.log("test loyalty 2023 account"),o=e.get("testLoyaltyAccount"))}var d,l,p=!1,c=!1,m="";e.StampedGlobalOptions={},e.isInitializedStamped=!1;var u,h,f,v,g,w,y,b,S,k,_,I,C,O=[],T=[],E=[],x={},U="div#stamped-main-widget",R={},L="html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline; }";function F(){var t,a=!1;return t=navigator.userAgent||navigator.vendor||e.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4)))&&(a=!0),a}function j(e){if("click"===e.type)return!0;if("keypress"!==e.type)return!1;var t=e.charCode||e.keyCode;return 32===t||13===t||void 0}function G(a){var s=t.createElement("span");s.appendChild(t.createTextNode(a)),s.id="tempCopyToClipboard",t.body.append(s);var r=t.createRange();r.selectNode(s),e.getSelection().removeAllRanges(),e.getSelection().addRange(r),t.execCommand("copy"),e.getSelection().removeAllRanges(),s.remove()}function A(){return(A=Object.assign||function(e){for(var t=1;t{let a=e;return a?(t.forEach(((e,t)=>{a=a.replaceAll(`{${t}}`,e)})),a):""},String.prototype.formatStringStamped=function(){for(var e=this,t=0;t-1&&(function(e,t){var a=function a(r){_(r,!0,t),k(e,a,s)},s=function s(r){_(r,!1,t),k(e,a,s)};!function(e,t,a){b(e,"load",t),b(e,"loadeddata",t),b(e,"error",a)}(e,a,s)}(e,t),y(e,s.class_loading)),function(e,t){var a,s,r=t._settings,i=e.tagName,o=w[i];if(o)return o(e,r),h(t,1),void(t._elements=(a=t._elements,s=e,a.filter((function(e){return e!==s}))));!function(e,t){var a=d(e,t.data_src),s=d(e,t.data_bg);a&&(e.style.backgroundImage='url("'.concat(a,'")')),s&&(e.style.backgroundImage=s)}(e,r)}(e,t),function(e){l(e,"was-processed","true")}(e),u(s.callback_reveal,e),u(s.callback_set,e))},E=function(e){return!!r&&(e._observer=new IntersectionObserver((function(t){t.forEach((function(t){return function(e){return e.isIntersecting||e.intersectionRatio>0}(t)?function(e,t){var a=t._settings;u(a.callback_enter,e),a.load_delay?function(e,t){var a=t._settings.load_delay,s=m(e);s||(s=setTimeout((function(){C(e,t),O(e)}),a),c(e,s))}(e,t):C(e,t)}(t.target,e):function(e,t){var a=t._settings;u(a.callback_exit,e),a.load_delay&&O(e)}(t.target,e)}))}),{root:(a=e._settings).container===t?null:a.container,rootMargin:a.thresholds||a.threshold+"px"}),!0);var a},x=["IMG","IFRAME"],U=function(e,t){return function(e){return e.filter((function(e){return!p(e)}))}((a=e||function(e){return e.container.querySelectorAll(e.elements_selector)}(t),Array.prototype.slice.call(a)));var a},R=function(e,t){this._settings=function(e){return A({},o,e)}(e),this._loadingCount=0,E(this),this.update(t)};R.prototype={update:function(e){var t,a=this,r=this._settings;this._elements=U(e,r),!s&&this._observer?(function(e){return e.use_native&&"loading"in HTMLImageElement.prototype}(r)&&((t=this)._elements.forEach((function(e){-1!==x.indexOf(e.tagName)&&(e.setAttribute("loading","lazy"),T(e,t))})),this._elements=U(e,r)),this._elements.forEach((function(e){a._observer.observe(e)}))):this.loadAll()},destroy:function(){var e=this;this._observer&&(this._elements.forEach((function(t){e._observer.unobserve(t)})),this._observer=null),this._elements=null,this._settings=null},load:function(e,t){T(e,this,t)},loadAll:function(){var e=this;this._elements.forEach((function(t){C(t,e)}))}},a&&function(e,t){if(t)if(t.length)for(var a,s=0;a=t[s];s+=1)n(e,a);else n(e,t)}(R,e.lazyLoadOptionsStamped)}();function $(s,r){r?(Qe("Using included jQ"),l=r,e.jQueryStamped=l,Qe(l)):(Qe("Loaded jQ"),e.jQueryStamped=l),/msie/.test(e.navigator.userAgent.toLowerCase())&&(l.support.cors=!0),1!=StampedGlobalOptions.exclude_font&&l("head").append(l("",{rel:"stylesheet",href:"//fonts.googleapis.com/css?family=Open+Sans:400,600&display=swap",type:"text/css"}));var i=Je("stamped_referral_code")||Je("stamped_ref");i&&(Xe("stamped_referral_code",{code:i}),a.referral_code=i);var o=Ze("stamped_referral_code");o&&o.code&&(a.referral_code=o.code),Qe("Library Starting..."),l.isReady?D():l(t).ready((function(){D()})),setTimeout((function(){c||(Qe("Library not started, fallback"),D())}),3e3)}function D(){c||(Qe("Started library"),ct("stamped:init:starting"),K(),z()),c=!0}function K(){if(Qe("Starting UGC..."),(u=l(U)).length){he(),fe(),Ie(),be(),ye(),ue(),Se();try{e.LazyLoadStamped&&LazyLoadStamped.update&&LazyLoadStamped.update()}catch(e){}l(t).on("click keypress",".stamped-summary-ratings .summary-rating",(function(e){if(!0===j(e)){var t=l(this).find(".summary-rating-bar"),a=t.attr("data-rating"),s=t.hasClass("selected");l(".stamped-summary-ratings .summary-rating").each((function(){l(this).removeClass("selected")})),l(".summary-rating-bar").each((function(){l(this).removeClass("selected")})),a&&(s?(Me(1),l(".stamped-summary-ratings").removeClass("selected")):(t.addClass("selected"),l(this).addClass("selected"),l(".stamped-summary-ratings").addClass("selected"),Me(1,a)))}})),l(t).on("mouseover mouseout",".stamped-form-review-rating a.fa",(function(e){var t,a,s;t=e.currentTarget,s=l(t).attr("data-value"),a=l(t).parent(),"mouseover"===e.type?(a.find("a.fa:lt("+s+")").removeClass("fa-star-o").addClass("fa-star"),a.find("a.fa:gt("+(s-1)+")").removeClass("spr-icon-star-hover").addClass("fa-star-o")):a.find("a.fa").removeClass("fa-star").addClass("fa-star-o")})),l(t).on("click keypress",".stamped-tabs li",(function(e){!0===j(e)&&xe(this)})),l(t).on("keypress",".stamped-summary-actions-newreview",(function(e){!0===j(e)&&De("review")})),l(t).on("keypress",".stamped-summary-actions-newquestion",(function(e){!0===j(e)&&De("question")})),l(t).on("keypress",".stamped-form-input a",(function(e){!0===j(e)&&Ke(this)})),s="#shopry-rating-wrapper a.shopry-thumbs-up, #shopry-rating-wrapper a.shopry-thumbs-down, #shopry-rating-holder a.shopry-thumbs-up, #shopry-rating-holder a.shopry-thumbs-down, #stamped-rating-holder a.stamped-thumbs-up, #stamped-rating-holder a.stamped-thumbs-down, .stamped-rating-holder a.stamped-thumbs-up, .stamped-rating-holder a.stamped-thumbs-down",l(t).off("click keypress",s).on("click keypress",s,(function(t){if(!0===j(t)){var s=l(this).attr("data-review-id"),r=l(this).attr("data-question-id"),i=l(this).attr("data-rating"),o=u.attr("data-product-id"),n=l(this),d=n.parent();d.fadeTo("slow",.3),n.addClass("disable-link");var p=s?"reviews":"questions";l.ajax({type:"POST",url:a.SECURE_ENDPOINT+"/"+p+"/vote",data:{productId:o,reviewId:s,questionId:r,vote:i,apiKey:e.StampedGlobalOptions.apiKey,sId:e.StampedGlobalOptions.sId,storeUrl:e.StampedGlobalOptions.storeUrl},success:function(e){l(".stamped-thumbs-up i",d).html("  "+e.voteUp),l(".stamped-thumbs-down i",d).html("  "+e.voteDown),d.fadeTo("slow",1),n.removeClass("disable-link")}})}})),function(){var e=".stamped-share-button, .stamped-share-icon";l(t).off("click keypress",e).on("click keypress",e,(function(e){!0===j(e)&&l(this).parent().find(".stamped-share-links").fadeToggle()}))}(),l(t).on("click keypress",".stamped-summary-actions-mobile-filter",(function(e){if(!0===j(e)){var t=l(".stamped-filters-wrapper");t.hasClass("stamped-mobile-visible")?(t.slideUp(),t.removeClass("stamped-mobile-visible")):(t.slideDown(),t.addClass("stamped-mobile-visible"))}})),l(t).on("click keypress",".stamped-summary-keywords-list li",(function(e){if(!0===j(e)){var t=l(this);t.hasClass("selected")?(l(".stamped-summary-keywords-list li").removeClass("selected"),l(u).removeAttr("data-keyword")):(l(".stamped-summary-keywords-list li").removeClass("selected"),t.addClass("selected"),l(u).attr("data-keyword",t.text().trim())),l(".stamped-summary-actions-clear").show(),Me(1)}})),l(t).on("change keyup",".stamped-reviews-search-input",(function(e){var t;(t=l(this).val())?(l(".stamped-reviews-search-clear").show(),l(".stamped-reviews",u).attr("data-filtered","true")):(l(".stamped-reviews-search-clear").hide(),l(".stamped-reviews",u).removeAttr("data-filtered")),13==e.keyCode&&(t=l(this).val())&&(l(u).attr("data-search",t.trim()),l(".stamped-summary-actions-clear").show(),ke(),Me(1))})),l(t).on("click keypress",".stamped-reviews-search-button",(function(e){if(!0===j(event)){var t=l(".stamped-reviews-search-input").val();t&&(l(u).attr("data-search",t.trim()),l(".stamped-summary-actions-clear").show(),ke(),Me(1))}})),l(t).on("click keypress",".stamped-reviews-search-clear",(function(e){!0===j(e)&&(l(".stamped-reviews-search-clear").hide(),l(".stamped-reviews-search-input").val(""),l(u).removeAttr("data-search"),Me(1))})),l(t).on("click keypress",".stamped-summary-actions-clear",(function(e){!0===j(e)&&We(l(this).data("type"))})),l(t).on("change keyup",".stamped-questions-search-input",(function(e){var t;(t=l(this).val())?(l(".stamped-questions-search-clear").show(),l(".stamped-questions",u).attr("data-filtered","true")):(l(".stamped-questions-search-clear").hide(),l(".stamped-questions",u).removeAttr("data-filtered")),13==e.keyCode&&(t=l(this).val())&&(l(u).attr("data-search-qna",t.trim()),l(".stamped-summary-actions-clear").show(),Ve())})),l(t).on("click keypress",".stamped-questions-search-button",(function(e){if(!0===j(event)){var t=l(".stamped-questions-questions-input").val();t&&(l(u).attr("data-search-qna",t.trim()),l(".stamped-summary-actions-clear").show(),Ve())}})),l(t).on("click keypress",".stamped-questions-search-clear",(function(e){!0===j(e)&&(l(".stamped-questions-search-clear").hide(),l(".stamped-questions-search-input").val(""),l(u).removeAttr("data-search-qna"),Ve())})),l(t).one("stamped:reviews:loaded",(function(){Qe("Main Widget event triggered reload once"),fe(),Ie(),be(),Se(),Je("write_review")&&De("review"),Je("write_question")&&De("question")})),l(t).on("stamped:reviews:loaded",(function(t){Qe("Main Widget event triggered reload"),E=[],ye(),ue();try{e.LazyLoadStamped&&LazyLoadStamped.update&&LazyLoadStamped.update()}catch(e){}l(".stamped-tabs > li").click((function(){Array.prototype.slice.call(this.parentNode.children).forEach((function(e){e.setAttribute("aria-selected",!1)}));var e=this.getAttribute("aria-selected");this.setAttribute("aria-selected",!JSON.parse(e))})),l(".stamped-share-icon").click((function(){var e=l(this).siblings(".stamped-share-links"),t=e.attr("aria-expanded"),a=void 0!==t&&!1!==t?t:"false";e.attr("aria-expanded","true"==a?"false":"true"),l(this).toggleClass("stamped-active")})),l(".stamped-rating-holder > a").click((function(){Array.prototype.slice.call(this.parentNode.children).forEach((function(e){e.setAttribute("aria-pressed",!1)}));var e=this.getAttribute("aria-pressed");this.setAttribute("aria-pressed",!JSON.parse(e))}))}))}var s;l(t).one("stamped:launcher:loaded",(function(t){var a=Je("rewards-launcher");l(e).on("hashchange",(function(){location.hash.indexOf("stamped-rewards")>=0&&W()})),a&&("open"==a&&W(),a.indexOf("view-")>-1&&(W(!0),ee(a)))})),ve(),ge();var r=Je("stamped_r_id");r&&1!=a.disable_single_review&&function(s){l.ajax({type:"GET",url:a.SECURE_ENDPOINT+"/widget/reviews",data:{reviewId:s,apiKey:e.StampedGlobalOptions.apiKey,sId:e.StampedGlobalOptions.sId,storeUrl:e.StampedGlobalOptions.storeUrl,type:"single",showAvatar:"True",minRating:1},success:function(e){e.data&&StampedFn.openUGCModal([e.data],0,t,1,!1,0)},error:function(e){}})}(r)}function z(t){Qe("Starting Rewards...");var a=l("#stamped-rewards-init");if(t&&t.customer)return Qe("Started Rewards with direct data"),R=t,void M();t?(Qe("Started Rewards with JS data"),R.customer=t,V()):a.length>0?(Qe("Started Rewards with div data"),R.customer={customerId:a.data("customer-id"),customerEmail:a.data("customer-email"),customerFirstName:a.data("customer-first-name"),customerLastName:a.data("customer-last-name"),customerTags:a.data("customer-tags"),customerLocale:a.data("customer-locale"),totalOrders:0,totalSpent:a.data("customer-total-spent"),isAcceptMarketing:a.data("customer-accepts-marketing"),authToken:a.data("key-auth")},V()):Qe("Started Rewards no init customer data"),R&&0===Object.keys(R.customer||{}).length&&(R.customer={customerId:a.data("customer-id")||e.__st&&e.__st.cid||e.meta&&e.page&&e.meta.page.customerId})}function V(){Qe("Loading Rewards API init...");var t=a.metafields||"";R&&R.customer&&t&&(R.customer.metafields=t);var i=JSON.stringify(R.customer),n=a.is_test;let d=a.SECURE_ENDPOINT+"/v2/rewards/init?",p=e.StampedGlobalOptions.storeUrl?encodeURIComponent(e.StampedGlobalOptions.storeUrl):e.StampedGlobalOptions.sId;l.ajax({type:"GET",dataType:"json",url:`${a.SERVICE_HOST.svc_identity}/shop/${p}/check-feature/loyalty2023`,success:function(e,t,i){e.hasFeature||r?(console.log("Enabling Loyalty 2.0..."),s=!0,d=`${a.SERVICE_HOST.svc_loyalty_widget}/launcher?`):(s=!1,console.log("Enabling Loyalty 1.0..."))},error:function(){s=!1,console.log("Error, default to Loyalty 1.0...")}}).then((()=>{const t={apiKey:e.StampedGlobalOptions.apiKey,sId:e.StampedGlobalOptions.sId,storeUrl:e.StampedGlobalOptions.storeUrl,debug:null,isTest:n,isPreview:a.is_preview,referralCode:a.referral_code};r&&(t.testLoyalty2023=r,o&&(t.testLoyaltyAccount=o)),console.log("Loading",d),l.ajax({type:"POST",url:d+l.param(t),xhrFields:{withCredentials:!0},data:i,dataType:"json",contentType:"application/json; charset=utf-8",success:function(e,t,a){ct("stamped:rewards:init"),R=e,M()}})}))}function M(){!function(){if(!l("#stamped-rewards-init").length){var i=t.createElement("div");i.setAttribute("id","stamped-rewards-init"),t.body.appendChild(i)}let o=e.StampedGlobalOptions.storeUrl?encodeURIComponent(e.StampedGlobalOptions.storeUrl):e.StampedGlobalOptions.sId;l.ajax({type:"GET",dataType:"json",url:`${a.SERVICE_HOST.svc_identity}/shop/${o}/check-feature/loyalty2023`,success:function(e,t,a){s=!(!e.hasFeature&&!r)},error:function(){s=!1,console.log("Error, default to Loyalty 1.0...")}})}(),R&&R.html&&((h=l("#stamped-rewards-init")).html(R.html.main),function(){g=l(".stamped-rewards-launcher",h),w=l(".stamped-launcher-button",h),S=l("